package com.sdp.th.netty.utils;

public class T {

	public static void main(String[] args) {
		String s = "01460009001122003C01190137000B00FE001E231A00807EA0000000000064000313506CEC02B000001B3A";
		String a = "01460009001122003C0115013B000A00FE001E231A00807EA0000000000064000313506CE3432B00001465";
		String deviceNo  = NettyUtils.hexToDecimal(s.substring(62, 78));
		System.out.println(deviceNo);
		System.out.println(s.substring(58, 62));
		Double power = (double) Integer.parseInt(s.substring(58, 62), 16);
		Double xinhao = (double) Integer.parseInt(s.substring(26, 30), 16);
		
		System.out.println(s.substring(26, 30));
		
		System.out.println(power);
		System.out.println(xinhao);
	}
	
}
